/**
 * 日志路由模块
 */

const Router = require('koa-router');
const router = new Router();
const { search } = require('../services/logs');
const { validate } = require('../validators/common');
const { validSearch } = require('../validators/logs');

router.prefix('/logs');

router.get('/search', validate(validSearch), search);

module.exports = router;